package com.amado.course36ByteStream;

import java.io.Serializable;
/**
 * 类路径 +版本号对能读取数据，否则报错
 * @author Administrator
 *
 */
public class Student  implements Serializable{
	/**
	 * 可以不写，就使用默认的long serialVersionUID=1L;
	 */
	private static final long serialVersionUID = -5739448085219205243L;
	/**
	 * 
	 */
	
	private String name;
	private Integer age;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Integer getAge() {
		return age;
	}

	public void setAge(Integer age) {
		this.age = age;
	}

	public Student(String name, Integer age) {
		super();
		this.name = name;
		this.age = age;
	}
}